<?php
    $destinatario=$_POST['destino'];
    $asunto=$_POST['asunto'];
    $remitente=$_POST['senderMail'];
    $comentario=$_POST['comment'];
    $mensaje=" ".$comentario."\n responder a ".$nombre." ".$remitente." ";  
    $cabecera='From: cliente@usuarios.estage.com.mx';
    if(mail($destinatario, $asunto, $mensaje,$cabecera)){  echo "Enviando.."; }
    

?>
<script language='JavaScript'> var pagina='index.php?place=myprojects'; function redireccionar(){ location.href=pagina;  } setTimeout ('redireccionar()', 1300); </script>

<div class='loader' id="loaderImage"></div>
<script type="text/javascript" src="js/canvas.js"></script>
<script type="text/javascript">
	var cSpeed=2;
	var cWidth=95;
	var cHeight=95;
	var cTotalFrames=75;
	var cFrameWidth=95;
	var cImageSrc='images/sprites.gif';
	
	var cImageTimeout=false;
	
	function startAnimation(){
		
		document.getElementById('loaderImage').innerHTML='<canvas id="canvas" width="'+cWidth+'" height="'+cHeight+'"><p>Your browser does not support the canvas element.</p></canvas>';
		
		//FPS = Math.round(100/(maxSpeed+2-speed));
		FPS = Math.round(100/cSpeed);
		SECONDS_BETWEEN_FRAMES = 1 / FPS;
		g_GameObjectManager = null;
		g_run=genImage;

		g_run.width=cTotalFrames*cFrameWidth;
		genImage.onload=function (){cImageTimeout=setTimeout(fun, 0)};
		initCanvas();
	}
	
	
	function imageLoader(s, fun)//Pre-loads the sprites image
	{
		clearTimeout(cImageTimeout);
		cImageTimeout=0;
		genImage = new Image();
		genImage.onload=function (){cImageTimeout=setTimeout(fun, 0)};
		genImage.onerror=new Function('alert(\'Could not load the image\')');
		genImage.src=s;
	}
	
	//The following code starts the animation
	new imageLoader(cImageSrc, 'startAnimation()');
</script>